import { createApp } from 'vue';
import App from './App.vue';
import store from './store/store'; // 导入 Vuex store
import i18n from './i18n';
import ElementPlus from 'element-plus';
import 'element-plus/theme-chalk/index.css';
// 引入echarts
import echarts from "./echarts.ts";


// 判断是否处于开发环境，只在开发环境使用 Mock 拦截器
if (process.env.NODE_ENV === 'development') {
    const { setupMock } = require('./mock'); // 引入 Mock 拦截器配置
      setupMock(); // 执行 Mock 拦截器配置
  }


// 引入router
import router from './router'
var app = createApp(App);
  

// 应用router
app.use(router);
app.use(store);
app.use(i18n);
app.use(ElementPlus);
app.use(echarts);
app.mount('#app')
